package com.example.egghttp.retrofit.beans.goods;

public class Good {
    @Override
    public String toString() {
        return "Good{" +
                "id=" + id +
                ", barcode='" + barcode + '\'' +
                ", sn='" + sn + '\'' +
                ", name='" + name + '\'' +
                ", spuId=" + spuId +
                ", skuId=" + skuId +
                ", marketPrice=" + marketPrice +
                ", price=" + price +
                ", memberPrice=" + memberPrice +
                ", specificate='" + specificate + '\'' +
                ", specPath='" + specPath + '\'' +
                ", createdAt='" + createdAt + '\'' +
                ", updatedAt='" + updatedAt + '\'' +
                ", allocateStock='" + allocateStock + '\'' +
                ", realQty='" + realQty + '\'' +
                ", qty='" + qty + '\'' +
                '}';
    }

    private int id = -1;
    private String barcode;

    public String getStockInStock() {
        return stockInStock;
    }

    public void setStockInStock(String stockInStock) {
        this.stockInStock = stockInStock;
    }

    private String stockInStock;
    private String sn;
    private String name;
    private float spuId;
    private int skuId;
    private int realQty;
    private float marketPrice;
    private float price;
    private float memberPrice;
    private String specificate;
    private String specPath;
    private String createdAt;
    private String updatedAt;
    private String stock;
    private String saleInWeekAvg;
    private String saleInToday;

    public String getQty() {
        return qty;
    }

    public void setQty(String qty) {
        this.qty = qty;
    }

    private String qty;

    public String getAllocateStock() {
        return allocateStock;
    }

    public void setAllocateStock(String allocateStock) {
        this.allocateStock = allocateStock;
    }

    private String allocateStock;


    // Getter Methods

    public int getId() {
        return id;
    }

    public String getBarcode() {
        return barcode;
    }

    public String getSn() {
        return sn;
    }

    public String getName() {
        return name;
    }

    public float getSpuId() {
        return spuId;
    }

    public float getMarketPrice() {
        return marketPrice;
    }

    public float getPrice() {
        return price;
    }

    public float getMemberPrice() {
        return memberPrice;
    }

    public String getSpecificate() {
        return specificate;
    }

    public String getSpecPath() {
        return specPath;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    // Setter Methods

    public void setId(int id) {
        this.id = id;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setSpuId(float spuId) {
        this.spuId = spuId;
    }

    public void setMarketPrice(float marketPrice) {
        this.marketPrice = marketPrice;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public void setMemberPrice(float memberPrice) {
        this.memberPrice = memberPrice;
    }

    public void setSpecificate(String specificate) {
        this.specificate = specificate;
    }

    public void setSpecPath(String specPath) {
        this.specPath = specPath;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getStock() {
        return stock;
    }

    public void setStock(String stock) {
        this.stock = stock;
    }

    public String getSaleInWeekAvg() {
        return saleInWeekAvg;
    }

    public void setSaleInWeekAvg(String saleInWeekAvg) {
        this.saleInWeekAvg = saleInWeekAvg;
    }

    public String getSaleInToday() {
        return saleInToday;
    }

    public void setSaleInToday(String saleInToday) {
        this.saleInToday = saleInToday;
    }

    public boolean isStockIn() {
        return isStockIn;
    }

    public void setStockIn(boolean stockIn) {
        isStockIn = stockIn;
    }

    public boolean isStockIn;

    public int getSkuId() {


        return skuId == 0 ? getId()  : skuId ;
//        return skuId;
    }

    public String getSkuIdStr() {


        return skuId == 0 ? getId() + "" : skuId + "";
//        return skuId;
    }

    public void setSkuId(int skuId) {
        this.skuId = skuId;
    }

    public int getRealQty() {
        return realQty;
    }

    public void setRealQty(int realQty) {
        this.realQty = realQty;
    }
}